<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>09_溢出处理</title>
    <style>
            .overflow{
                /* 溢出的前提，容器/父元素一定要明确大小！*/
                width: 300px;
                height: 1300px;
                background-color: lightgreen;
                overflow: visible;/*溢出可见，默认值*/
                overflow: hidden;/*溢出隐藏，超出去的部分直接裁掉 */
                overflow: scroll;/*无论是否溢出，两个方向都显示拖拽条*/
                overflow: auto;/*溢出的方向自动显示拖拽条*/
            }
            .txt{
                background-color: yellow;
                width: 200px;
                /* 一下三局代码为组合代码，缺一不可！ */
                white-space: nowrap; /*强制文本不换号*/
                overflow: hidden;/*溢出隐藏*/
                text-overflow: ellipsis;/*溢出的文字替换为省略号*/
            }
    </style>
</head>
<body>
<!--title属性用于展示对应html元素的描述提示文本-->
<div class="txt" title="Lorem ipsum dolor sit amet, consectetur adipisicing elit. ">
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Animi blanditiis dolorem ea eum fugiat id impedit inventore ipsa, iste maiores mollitia, nulla optio perspiciatis praesentium quaerat rem reprehenderit rerum ullam?
</div>
<div class="overflow">
    <img src="../day01/1.png" alt="">
    <img src="../day01/1.png" alt="">
</div>
</body>
</html>